﻿@{
    Layout = null;
}
<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
</head>
<body>
    <div>
        <form id="form" enctype="multipart/form-data">
            Name:<input name="objFileEntity.Name" type="text" />
            Image:<input name="objFile" type="file" />
            <input type="button" id="btn_submit" value="提交" />
        </form>
    </div>
    <script src="~/Content/js/jquery-1.8.2.js"></script>
    <script src="~/Content/js/jquery.form.js"></script>
    <script src="~/Content/js/tjzheng.js"></script>
    <script type="text/javascript">
        $("#btn_submit").click(function () {
            var objFormEntity = new FormEntity("#form");
            objFormEntity.url = "/Files/Upload";
            objFormEntity.isClearData = false;
            objFormEntity.submit();
        });
    </script>
</body>
</html>
